API Documentation
Static Public Member Functions | List of all members
nkScripts::StringUtils Class Referencefinal

Utility for string manipulations. More...

Static Public Member Functions

static std::vector< std::string > splitUserTypeName (const std::string_view &userTypeName)
 
static std::string_view interpreterToString (INTERPRETER value)
 
static INTERPRETER stringToInterpreter (const std::string_view &value)
 

Detailed Description

Utility for string manipulations.

Member Function Documentation

◆ splitUserTypeName()

static std::vector<std::string> nkScripts::StringUtils::splitUserTypeName ( const std::string_view &  userTypeName)
static

Allows to split a string into smaller strings, meant for type name parsing. Will split members separated by "::".

Parameters
userTypeNameThe type name to split.
Returns
The split typename.

◆ interpreterToString()

static std::string_view nkScripts::StringUtils::interpreterToString ( INTERPRETER  value)
static

Converts an interpreter enum value translated in a string.

Parameters
valueThe enum value to convert.
Returns
The string attached to the enum value.

◆ stringToInterpreter()

static INTERPRETER nkScripts::StringUtils::stringToInterpreter ( const std::string_view &  value)
static

Converts a string to a corresponding enum value.

Parameters
valueThe string to convert.
Returns
The enum value associated to given string.

The documentation for this class was generated from the following file: